<template>
  <div class="doctor-list">
    <h5 v-show="titleShow" class="list-title">专家解答</h5>
    <ul id="contentbox">
      <li v-for="(item,index) in listZjPost" :key="index" @click="$router.push('/zhuanjiaDetail')">
        <div class="touxiang"><img :src="require('../assets/img/'+ item.img)"></div>
        <div class="name">
          <h4>{{item.name}} <span><img src="../assets/img/doctor-vip.png"></span></h4>
          <p>{{item.desc}}</p>
        </div>
        <div class="price">
          <p>{{item.price}}</p>
        </div>
      </li>
    </ul>
  </div>
</template>
<script>
// @ is an alias to /src

export default {
  data() {
    return {
      choosenSex: ''
    }
  },
  props: ['listZjPost', 'titleShow'],
  name: 'needs',
  computed: {},
  methods: {},
  mounted() {}
}
</script>
<style lang="scss" scoped>
.doctor-list {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
  border-bottom: #f7f7f7 10px solid;
  padding-top: 6px;
  padding-bottom: 16px;
  .list-title {
    width: 100%;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: #999999;
    line-height: 36px;
  }
  ul {
    display: block;
    overflow: hidden;
    width: 100%;
    li {
      width: 100%;
      float: left;
      border-bottom: 1px solid #eee;
      .touxiang {
        width: 40px;
        height: 40px;
        margin-top: 22px;
        margin-right: 15px;
        border-radius: 100px;
        float: left;
        overflow: hidden;
        img {
          width: 100%;
        }
      }
      .name {
        width: 188px;
        height: 84px;
        float: left;
        h4 {
          font-size: 16px;
          line-height: 25px;
          margin-top: 20px;
          margin-bottom: 6px;
          span {
            display: inline-block;
            width: 16px;
            height: 16px;
            border-radius: 100px;
            // background: -webkit-linear-gradient(left, #86D1FC , #4EA4F7); /* Safari 5.1 - 6.0 */
            // background: linear-gradient(right, #86D1FC , #4EA4F7); /* 标准的语法 */
            color: #fff;
            line-height: 20px;
            margin-left: 2px;
            font-size: 14px;
            text-align: center;
            position: relative;
            top: 2px;
            img {
              width: 100%;
            }
          }
        }
        p {
          font-size: 11px;
          color: #999999;
        }
      }
      .price {
        float: right;
        width: 90px;
        p {
          height: 30px;
          width: 100%;
          border-radius: 100px;
          margin-top: 30px;
          text-align: center;
          line-height: 30px;
          color: #fff;
          font-size: 14px;
          display: block;
          background: -webkit-linear-gradient(left, #4ea4f7, #86d1fc); /* Safari 5.1 - 6.0 */
          background: linear-gradient(right, #4ea4f7, #86d1fc); /* 标准的语法 */
        }
      }
    }
  }
}
.doctor-list-mq {
  padding-top: 0;
}
</style>
